import Vue from 'vue'
import VueX from 'vuex'
Vue.use(VueX);
export default new VueX.Store({
  state: {
    alertLevelData: '',
    sendAddData: '',
    diseaseList:''
  },
  actions: {
    saveAlertLevel(ctx, data) {
      ctx.commit('saveAlertLevel', data);
    },
    saveSendAdd(ctx, data) {
      ctx.commit('saveSendAdd', data);
    },
    saveDiseaseList(ctx, data) {
      ctx.commit('saveDiseaseList', data);
    },
  },
  mutations: {
    saveAlertLevel(state, data) {
      state.alertLevelData = data;
    },
    saveSendAdd(state, data) {
      state.sendAddData = data;
    },
    saveDiseaseList(state, data) {
      state.diseaseList = data;
    }
  }
})
